package com.team.app.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.team.app.dao.RentDao;
import com.team.app.model.Rent;


@Service
public class RentServiceImpl implements RentService{
	@Autowired
    private RentDao rentDao;     

	@Override
	@Transactional
	public Long create(Rent obj) {
		// TODO Auto-generated method stub
		return rentDao.create(obj);
	}

	@Override
	@Transactional
	public void edit(Rent obj) {
		// TODO Auto-generated method stub
		rentDao.edit(obj);
	}

	@Override
	@Transactional
	public void remove(Rent obj) {
		// TODO Auto-generated method stub
		rentDao.remove(obj);
	}

	@Override
	@Transactional
	public Rent find(Object id) {
		// TODO Auto-generated method stub
		return rentDao.find(id);
	}

	@Override
	@Transactional
	public List<Rent> findAll() {
		// TODO Auto-generated method stub
		return rentDao.findAll();
	}

	@Override
	@Transactional
	public List<Rent> findRange(int[] range) {
		// TODO Auto-generated method stub
		return rentDao.findRange(range);
	}

	@Override
	@Transactional
	public Long count() {
		// TODO Auto-generated method stub
		return rentDao.count();
	} 
}
